package pyip.lib.javalearn.classloader.load.rule;

class ClassLoaderNewInstance {
    public static void main(String[] args) {
        ClassLoader mcl = new MyClassLoader();
        try {
            IA a = (IA) mcl.loadClass("pyip.lib.javalearn.classloader.load.rule.A").newInstance();
            a.print();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}